package com.kuhyygy.widget.fragment;

import com.kuhyygy.R;

import android.content.res.Resources;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

public class VideoFragment extends Fragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		Resources res = inflater.getContext().getResources();
		ListAdapter la = new ArrayAdapter<String>(inflater.getContext(),
				R.layout.list_item, res.getStringArray(R.array.cities));
		ListView lv = new ListView(getActivity());
		lv.setTextFilterEnabled(true);
		lv.setAdapter(la);
		return lv;
	}

}
